package D2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-16
 * Time: 11:35
 */
public class Ladder {
    private double above;
    private double bottom;
    private double heght;
    public double getArea(){
        return (above+bottom)*heght/2;
    }

    public double getAbove() {
        return above;
    }

    public double getBottom() {
        return bottom;
    }

    public double getHeght() {
        return heght;
    }

    public void setAbove(double above) {
        this.above = above;
    }

    public void setBottom(double bottom) {
        this.bottom = bottom;
    }

    public void setHeght(double heght) {
        this.heght = heght;
    }

    public Ladder(double above, double bottom, double heght) {
        this.above = above;
        this.bottom = bottom;
        this.heght = heght;
    }

    public Ladder(){
    }
}

